-- GENERATED SPELL FOR [Bael'dun Officer] --


function spell0_3378(pUnit, Event) --@Nimble Reflexes,Self--
pUnit:FullCastSpellOnTarget(6264,pUnit)
pUnit:RegisterEvent('Sorts_3378', 8000, 1)
end

function spell1_3378(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_3378', 541, 1)
end

function Sorts_3378(pUnit, Event)
local choix_sorts_3378 = math.random(0, 1)
if choix_sorts_3378 == 0 then
pUnit:RegisterEvent('spell0_3378', 1, 1)
end
if choix_sorts_3378 == 1 then
pUnit:RegisterEvent('spell1_3378', 1, 1)
end
end

function mob3378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3378', math.random(1500, 3000), 1)
end

function mob3378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3378, 1, 'mob3378_Action')
RegisterUnitEvent(3378, 2, 'mob3378_Leave')
RegisterUnitEvent(3378, 3, 'mob3378_Kill')
RegisterUnitEvent(3378, 4, 'mob3378_Die')
